<template>
    <div class="button-wraper" @click="onClick">
        <slot></slot>
    </div>
</template>

<script>
export default {
    name:'c-button',
    methods:{
        onClick(){
            this.$emit('click')
        }
    }
}
</script>

<style scoped lang="less">
    .button-wraper{
        cursor: pointer;
        text-align: center;
        line-height:46px ;
        background: #B8262C;
        border-radius: 6px;
        width: 115px;
        height: 46px;
        font-size: 24px;
        font-family: Alibaba PuHuiTi;
        font-weight: 400;
        color: #FFFFFF;
    }
</style>